@extends('public.father')
@section('title','修改页')
@section('content')
    <div class="container">
        <div class="jumbotron">
            @include('public._errors')
            <form action="{{route ('user.update',Auth::id())}}" method="post">
                {{method_field ('PATCH')}}
                {{csrf_field()}}
                <div class="form-group">
                    <label for="username">用户名</label>
                    <input name="name" type="text" class="form-control" id="username" placeholder="请输入用户名" value="{{$user->name}}">
                </div>
                <div class="form-group">
                    <label for="password">旧密码</label>
                    <input name="oldpassword" type="password" class="form-control" id="oldpassword" placeholder="请输入旧密码">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input name="password" type="password" class="form-control" id="password" placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="password_c">确认密码</label>
                    <input name="password_confirmation" type="password" class="form-control" id="password_c" placeholder="请输入密码">
                </div>
                <button type="submit" class="mt-3 btn btn-primary">提交</button>
            </form>
        </div>
    </div>
@endsection